home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: somGetGlobalEnvironment()
- Sent: 3/12/96 9:30 AM
- Received: 3/12/96 8:51 AM
- From: Jim Lloyd, jim@melongem.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- At 6:41 AM 3/12/96, Arni McKinley wrote:
- >What does the Global function
- >
- >Environment *ev = somGetGlobalEnvironment()
- >
- >really do and wy do we pass 'ev' around to everything in ODF if this call
- >can get it so easily?
-
- That's a good question. Our understanding is that somGetGlobalEnvironment
- will either break or become relatively expensive when used in a threaded
- environment. The safe thing to do is to synthesize a new environment on
- the stack. We've created a new helper object for this purpose
- (FW_SOMEnvironment), and now use it instead of somGetGlobalEnvironment. I
- believe we created FW_SOMEnvironment after releasing 1.0d11, so don't
- expect to find it in your current sources.
-
- Jim Lloyd
- ODF Team
-
-